home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / ISPTYPE.JS_ / isptype.js
Encoding:
Text File  |  2003-03-24  |  1.2 KB  |  59 lines

  1.  
  2.  
  3. var g_isptypeImgDir="images/";
  4.  
  5.  
  6. var g_isptypeConnect1="1";
  7. var g_isptypeConnect2="1";
  8. var g_isptypeConnect3="1";
  9.  
  10. function isptypeFirstPage_LoadMe()
  11. {
  12.     InitFrameRef('External');
  13.     IsptypeToggleAllRadioButtons(true);
  14.  
  15.     
  16.     if (g_isptypeConnect1=='1') {
  17.         g.isptypeTelModemSpn1.style.display = "inline";
  18.         g.isptypeTelModemSpn2.style.display = "inline";
  19.         }
  20.     if (g_isptypeConnect2=='1') {
  21.         g.isptypeHighSpeedSpn1.style.display = "inline";
  22.         g.isptypeHighSpeedSpn2.style.display = "inline";
  23.         }
  24.     if (g_isptypeConnect3=='1') {
  25.         g.isptypeSharedConnectionSpn1.style.display = "inline";
  26.         g.isptypeSharedConnectionSpn2.style.display = "inline";
  27.         }
  28.  
  29.     InitNewButtons();
  30.  
  31.     g_FirstFocusElement = g.btnNext;
  32.  
  33.     if (g_FirstFocusElement != null)
  34.         g_FirstFocusElement.focus();
  35.     else
  36.         g.document.body.focus();
  37. }
  38.  
  39. function IsptypeToggleAllRadioButtons(bSwitch)
  40. {
  41.     try
  42.     {
  43.         g.radioTelModem.disabled = !bSwitch;
  44.         g.text_TelModem.disabled = !bSwitch;
  45.  
  46.         g.radioHighSpeed.disabled = !bSwitch;
  47.         g.text_HighSpeed.disabled = !bSwitch;
  48.  
  49.         g.radioSharedConnection.disabled = !bSwitch;
  50.         g.text_SharedConnection.disabled = !bSwitch;
  51.     }
  52.     catch (e)
  53.     {
  54.     }
  55. }
  56.  
  57.  
  58.  
  59.